#if !defined(AFX_DLGSETPWM_H__57D81FF8_92B1_47D0_B47D_B2E39C2A85AF__INCLUDED_)
#define AFX_DLGSETPWM_H__57D81FF8_92B1_47D0_B47D_B2E39C2A85AF__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgSetPwm.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CDlgSetPwm dialog

class CDlgSetPwm : public CDialog
{
// Construction
public:
	CDlgSetPwm(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CDlgSetPwm)
	enum { IDD = IDD_IDD_SETPWM };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDlgSetPwm)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CDlgSetPwm)
	afx_msg void OnPwmstart();
	virtual BOOL OnInitDialog();
	afx_msg void OnPwmstop();
	afx_msg void OnTimer(UINT nIDEvent);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
	
	I8 _isStart;
	void GetPara();
	afx_msg void OnPwmEn(UINT uiID);
public:
	I32 _dev;
	I8 _en[EM9118_MAXPWMCHCNT];
	F64 _freq[EM9118_MAXPWMCHCNT];
	F64 _realFreq[EM9118_MAXPWMCHCNT];
	F64 _duty[EM9118_MAXPWMCHCNT];
	F64 _realDuty[EM9118_MAXPWMCHCNT];
	U32 _count[EM9118_MAXPWMCHCNT];
	I8 _phase[EM9118_MAXPWMCHCNT];
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DLGSETPWM_H__57D81FF8_92B1_47D0_B47D_B2E39C2A85AF__INCLUDED_)
